package com.qp.basics.common.domain;

import com.qp.basics.common.annotation.FiledColumnInfo;
import com.qp.basics.common.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.io.Serializable;

/***
 * 实体修改历史。
 */
@Entity
@Data
public class EntityHistory extends BaseEntity implements Serializable {
    @Id
    @ApiModelProperty(value = "ID", hidden = true)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    /**实体id*/
    @FiledColumnInfo(queryType = "=")
    private Long entityId;
    /**类名*/
    @FiledColumnInfo(queryType = "like")
    private String entityName;
    /**关键字段信息*/
    @FiledColumnInfo(queryType = "like")
    private String entityTitle;
    /**实体内容。JSON格式，只保留第一层。*/
    @FiledColumnInfo(queryType = "like", formType = "Textarea")
    private String content;
    /**备注*/
    @FiledColumnInfo(queryType = "like", formType = "Textarea")
    private String comment;
}
